package bean.invoice;

import bean.shoppingCard.*;
import bean.user.*;

public class Invoice {
	
	private int invoiceNo;
	private double total;
	private ShoppingCart shoppingCard;
	private SessionUser user;
	
	/**
	 * @param invoiceNo
	 * @param total
	 * @param shoppingCard
	 * @param user
	 */
	public Invoice(int invoiceNo, double total, ShoppingCart shoppingCard,SessionUser user) {
		this.invoiceNo = invoiceNo;
		this.total = total;
		this.shoppingCard = shoppingCard;
		this.user = user;
	}
	/**
	 * @return the shoppingCard
	 */
	public ShoppingCart getShoppingCard() {
		return shoppingCard;
	}
	/**
	 * @param shoppingCard the shoppingCard to set
	 */
	public void setShoppingCard(ShoppingCart shoppingCard) {
		this.shoppingCard = shoppingCard;
	}
	/**
	 * @return the user
	 */
	public SessionUser getUser() {
		return user;
	}
	/**
	 * @param user the user to set
	 */
	public void setUser(SessionUser user) {
		this.user = user;
	}
	/**
	 * @return the invoiceNo
	 */
	public int getInvoiceNo() {
		return invoiceNo;
	}
	/**
	 * @param invoiceNo the invoiceNo to set
	 */
	public void setInvoiceNo(int invoiceNo) {
		this.invoiceNo = invoiceNo;
	}
	/**
	 * @return the total
	 */
	public double getTotal() {
		return total;
	}
	/**
	 * @param total the total to set
	 */
	public void setTotal(double total) {
		this.total = total;
	}
	
	
	

}
